<template lang="">
    <h1> {{msg}}</h1>
    <p>{{name}}</p>
</template>
<script>
export default {
  name: 'HelloWorld',
  props: { msg: String },
  data(){
    return {
      name:'what a fine day today'
    }
  },
  created() {
    console.log("bad boy")
    setTimeout(() => {
      this.change()
    }, 2000)
    
  },
  methods: {
    change(){
      console.log(this.name)
    },
  },
}
</script>
<style lang="">
</style>